package com.abocode.jfaster.web.system.service;

import com.abocode.jfaster.core.common.hibernate.qbc.CriteriaQuery;
import com.abocode.jfaster.core.common.model.json.DataGrid;
import com.abocode.jfaster.core.common.service.CommonService;
import com.abocode.jfaster.web.system.bean.ExlUserBean;
import com.abocode.jfaster.web.system.entity.User;

import java.util.List;

/**
 * @author 张代浩
 */
public interface UserService extends CommonService {
    public User checkUserExits(User user);

    public String getUserRole(User user);

    public void pwdInit(User user, String newPwd);

    /**
     * 判断这个角色是不是还有用户使用
     *
     * @param id
     * @return
     * @Author JueYue
     * @date 2013-11-12
     */
    public int getUsersOfThisRole(String id);

    List<ExlUserBean> getExlUserList(DataGrid dataGrid, User user, CriteriaQuery cq);
}
